package com.ben.multiple.aop.config;

import com.ben.multiple.aop.config.LogAnnotation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
@AllArgsConstructor
@Slf4j
public class UserResource {

    @LogAnnotation(value = "用户列表查询")
    @GetMapping("/list")
    public String listUser() {
        log.info("UserResource listUser");
        return "hello user";
    }

}
